package cn.moon.client.channel;

import cn.moon.protocol.ProxyMessage;
import io.netty.channel.Channel;


public class ClientChannelManager {

    private static final ClientChannelManager instance = new ClientChannelManager();

    private ClientChannelManager (){}

    private Channel clientChannel;

    public static void setClientChannel(Channel clientChannel) {
        instance.clientChannel = clientChannel;
    }

    public static void clientChannelForward(ProxyMessage proxyMessage){
        instance.clientChannel.writeAndFlush(proxyMessage);
    }



}
